package com.zz.parkingsystem.service;

import com.zz.parkingsystem.entity.Checkon;

import java.util.Date;
import java.util.List;

/**
 * @Auther: BAISIHANG
 * @Date: 2022/8/31 - 08 - 31 - 9:39
 * @Description: com.zz.parkingsystem.service
 * @version: 1.0
 */
public interface CheckOnService {

    //根据巡检员id查该巡检对应的考勤表
    Checkon getselectByPrimaryKeyByInspectorId(Integer id);
    //根据时间查考勤表当月所有数据
     List getselectByPrimaryKeyBytime(Date time,int ins_id);
    //根据时间查考勤表当月正常天数
    int getselectByPrimaryKeyBytimeNormal(Date time,int ins_id);
    //根据时间查考勤表当月异常天数
    int getselectByPrimaryKeyBytimeLate(Date time,int ins_id);
    //根据考勤状态查出不同状态下的考勤次数
    List getselstaCheckOn(String co_time);
    //正常打卡数
    int  getselnormal();
    //异常打卡数
    int getselAbnormal();

    int deleteByPrimaryKey(Long id);

    int insert(Checkon record);

    int insertSelective(Checkon record);

    Checkon selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Checkon record);

    int updateByPrimaryKey(Checkon record);
}
